package my;

/**
 * Created by lenovo on 2016/4/8.
 */
public class fibonacci {
    public static void main(String[] args) {
        fibonacci f = new fibonacci();
        int res = f.add(7);
        System.out.print(res+"");
    }
    public int add(int n){
        if(n==1){
            return  1;
        }else if(n==2){
            return 1;
        }else{
            return (add(n-1)+add(n-2));
        }
    }
}
